import request from '@/utils/request'

export function getListPage(params) {
  return request({
    url: '/umc/role/listPage',
    method: 'post',
    data: params
  })
}

export function deleteRole(params) {
  return request({
    url: '/umc/role/delete/' + params,
    method: 'post'
  })
}

export function enableRole(params) {
  return request({
    url: '/umc/role/enable/' + params,
    method: 'post'
  })
}

export function disableRole(params) {
  return request({
    url: '/umc/role/disable/' + params,
    method: 'post'
  })
}

export function modifyRole(params) {
  return request({
    url: '/umc/role/modifyRole',
    method: 'post',
    data: params
  })
}

export function saveRole(params) {
  return request({
    url: '/umc/role/saveRoleInfo',
    method: 'post',
    data: params
  })
}

export function checkRoleName(params) {
  return request({
    url: '/umc/role/checkRoleName',
    method: 'post',
    data: params
  })
}

export function getBindUserList(params) {
  return request({
    url: '/umc/role/getBindUserByRoleId/' + params,
    method: 'post'
  })
}

